#include <stdio.h>
#include <stdlib.h>
#include"head.h"

int main(int argc,char *argv[])
{
int fd;
int i;
int a=0,b=0,c=0,d=0;
for(i=1;i<argc-1;i++)
{
if(argv[i][2]=='c')
a=1;
else if(argv[i][2]=='x')
b=1;
else if(argv[i][2]=='d')
c=1;
else if(argv[i][2]=='o')
d=1;
}
fd =open(argv[argc-1],"r");
if(fd==NULL)
{
printf("wrong!\n");
exit(0);
}
myod(fd,a,b,c,d);
return 0;
}

